package data;

public class Focus {
	private final Cluster cluster;
	
	public Focus(Cluster cluster) {
		this.cluster = cluster;
	}
	
	public Cluster getCluster() {
		return cluster;
	}
	
	@Override
	public boolean equals(Object o) {
		if (o == null) {
			return false;
		}
		if (!o.getClass().equals(getClass())) {
			return false;
		}
		
		return this.cluster.equals(((Focus)o).cluster);
	}
	
	@Override
	public int hashCode() {
		return cluster.hashCode();
	}
}
